/**
 * 
 */
package com.cqan.survey.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;

/**
 * @Description 调查实体
 * @author slaton.wu@gmail.com
 * @date 2012-7-20上午10:30:44
 *
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_SURVEY")
//默认的缓存策略.
@SuppressWarnings("serial")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Survey extends LongEntity {

	private String content;
	
	private Date createTime;
	
	/**
	 * 处理结果
	 */
	private String deal;
	
	private String deviceName;
	
	private Long pid;
	
	private String title;
	
	private Long uid;
	
	private Date updateTime;
	
	@Column(name="CONTENT",length=10000)
	public String getContent() {
		return content;
	}

	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	@Column(name="DEAL")
	public String getDeal() {
		return deal;
	}

	@Column(name="DEVICE_NAME")
	public String getDeviceName() {
		return deviceName;
	}

	/**
	 * APP ID
	 * @return
	 */
	@Column(name="PID")
	public Long getPid() {
		return pid;
	}

	@Column(name="TITLE")
	public String getTitle() {
		return title;
	}

	@Column(name="UID")
	public Long getUid() {
		return uid;
	}

	@Column(name="UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setDeal(String deal) {
		this.deal = deal;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
}
